
const app = {
  state: {
    periodInfo: {},
    trendInfo: {}
  },

  mutations: {
    SET_PERIOD_INFO: (state, periodInfo) => {
      state.periodInfo = periodInfo
    },
    SET_TREND_INFO: (state, trendInfo) => {
      state.trendInfo = trendInfo
    },
  },

  actions: {
    SetPeriod({ commit }, periodInfo) {
      commit('SET_PERIOD_INFO', periodInfo)
    },

    SetTrend({ commit }, trendInfo) {
      commit('SET_TREND_INFO', trendInfo)
    }
  }
}

export default app
